package com.jianggy.chainofrespon.webfilter;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        Request request = new Request();
        request.setRequestStr("abcdefghdsflkjlsdkjfldskjflskdjlaflasjdlfajlkfs");
        Response response = new Response();
        response.setResponseStr("response:");
        FilterChain filterChain = new FilterChain();
        filterChain.addFilter(new AFilter()).addFilter(new BFilter()).addFilter(new CFilter());
        filterChain.doFilter(request, response, filterChain);
        System.out.println(request.getRequestStr());
        System.out.println(response.getResponseStr());
    }
}
